/*
 * @Description:
 * @Author: zhicheng.yang01
 */
import { RouteConfig } from "react-router-config";
import BasicLayout from "../layout/BasicLayout";
import { lazy } from "react";

// import Login from "@/pages/login";

const routes: RouteConfig[] = [
  {
    component: BasicLayout,
    routes: [
      {
        path: "/home",
        name: "主页",
        component: lazy(() => import("../pages/Home")),
      },
      {
        path: "/diary",
        name: "日记",
        component: lazy(() => import("../pages/Diary")),
      },
      {
        path: "/essay",
        name: "随笔",
        component: lazy(() => import("../pages/Essay")),
      },
      {
        path: "/note",
        name: "笔记",
        component: lazy(() => import("../pages/Note")),
      },
      {
        path: "/todoList",
        name: "待办",
        component: lazy(() => import("../pages/TodoList")),
      },
      {
        path: "/password",
        name: "密码本",
        component: lazy(() => import("../pages/Password")),
      },
    ],
  },
];

export default routes;
